package com.wzs.easytobuy.mapper;

import com.wzs.easytobuy.model.Format;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface FormatMapper {
    int deleteByPrimaryKey(String id);

    int insert(Format record);

    int insertSelective(Format record);

    Format selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Format record);

    int updateByPrimaryKey(Format record);

    Format selectByIdAndPs(String productId, Integer price, Integer sales);

    int getStoreById(String formatId);

    int updateBySid(String fid, int newSales, int newStore);

    Format selectByCidAndSid(String productId, String colorId, String sizeId);

    Format selectByCidAndSid2(String productId, String colorId, String sizeId);

}